package singleton;

/**
 * 饿汉式  好处线程绝对安全，坏处启动就加载了
 * @author Administrator
 *
 */
public class Singleton2 {
	
	private static final Singleton2 instance=new Singleton2();
	
	private Singleton2(){}
	
	public static Singleton2 getInstance(){
		return instance;
	}
}
